import request from '@/utils/request'
import type { pageInt } from './types'
const basePre = '/api/dict'
/**
 * 分页列表
 */
export function dataPageApi(data: pageInt) {
  return request({
    url: `${basePre}/page`,
    method: 'post',
    data
  })
}

/**
 * 新增-更新
 */
export function dataSaveApi(data: any) {
  return request({
    url: `${basePre}`,
    method: 'post',
    data
  })
}
/**
 * 删除
 * @param ids id集合
 */
export function  dataBatchDelApi(ids: number[]) {
  return request({
    url: `${basePre}/del/batch`,
    method: 'post',
    data: ids
  })
}


